package main

import (
	"fmt"
	"reflect"
)

func main() {
	s := "sdclone"
	chars := []byte{}
	runeChars := []rune{}
	for i, ch := range s {
		fmt.Println(i, ch, reflect.TypeOf(ch)) // 这里打印的字符
		chars = append(chars, byte(ch))
		runeChars = append(runeChars, ch)
	}
	fmt.Println(chars)     //[115 100 99 108 111 110 101]
	fmt.Println(runeChars) //[115 100 99 108 111 110 101]

	v1 := 'f'
	fmt.Println(reflect.TypeOf(v1)) //int32
}
